<template>
    <ul v-if="data">
        <li v-for="item in data" :key="item.id">
            {{ item.title }}
            <ChildMenu :data="item.children" />
        </li>
    </ul>
</template>

<script setup lang="ts">
defineProps(['data']);
</script>

<style scoped></style>